package com.itmk.business.article.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("articletags")
public class ArticleTags {


    @TableId
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    private String tagname;
    private Integer clicktime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private Integer type;

    public ArticleTags() {
    }

    public ArticleTags(String tagname,Integer type) {
        this.tagname = tagname;
        this.type=type;
    }

    public ArticleTags(String tagname) {
        this.tagname = tagname;
        this.type=0;
    }
}
